﻿using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
using AssetManageSystem.Model.Enum;

namespace AssetManageSystem.Model.AssetManage
{
    /// <summary>
    /// 资产类型
    /// </summary>
    public class AssetType : TreePoco<AssetType>
    {
        /// <summary>
        /// 类型名称
        /// </summary>
        [Display(Name = "类型名称")]
        [Required(ErrorMessage = "Validate.{0}required")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string TypeName { get; set; }

        /// <summary>
        /// 类型代码
        /// </summary>
        [Display(Name = "类型代码")]
        [Required(ErrorMessage = "Validate.{0}required")]
        [StringLength(10, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string TypeCode { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name = "排序")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public int? DisplayOrder { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        public string Remark { get; set; }
        
        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name = "状态")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public CommonStatus Status { get; set; }

    }
}
